<%@page import="com.wanmait.shoppingsys.vo.UserInfo"%>
<%@page import="com.wanmait.shoppingsys.util.ShopCar"%>
<%@page import="com.wanmait.shoppingsys.vo.Type"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <% String path = request.getServletContext().getContextPath(); %>
<jsp:include page="/inc/header.jsp"></jsp:include>
    
<jsp:include page="/TypeController?action=type"></jsp:include>  

<div class="search_bar clearfix">
		<a href="index.jsp" class="logo fl"><img src="<%=path %>/images/logo.png"></a>
		<form class="search_con fl" action="<%=path %>/SpecialtyController?action=serach" method="post">
			<input type="text" class="input_text fl" name="serach_produit" placeholder="搜索商品">
			<input type="submit" class="input_btn fr" name="serach" value="搜索">
		</form>
		
		<div class="guest_cart fr">
			<a href="<%=path%>/order/index.jsp" class="cart_name fl">我的购物车</a>
			<%ShopCar shopCar = (ShopCar)session.getAttribute("shopCar");
			UserInfo userinfo = (UserInfo)session.getAttribute("userinfo");
			if(userinfo==null){%>
			<div class="goods_count fl" id="show_count">0</div>
			<%}else{if(shopCar==null){%>
			<div class="goods_count fl" id="show_count">0</div>
			<%}else{ %>
			<div class="goods_count fl" id="show_count"><%=shopCar.getTotalNumber() %></div>
			<%} %>
			<%} %>
		</div>
</div>
<div class="navbar_con">
		<div class="navbar">
			<h1 class="fl">全部商品分类</h1>
			<ul class="navlist fl">
				<li><a href="<%=path %>/index.jsp">首页</a></li>
				<li class="interval">|</li>
				<li><a href="">抽奖</a></li>
				<li class="interval">|</li>
				<li><a href="<%=path %>/specialty/findbycity.jsp">按城市查找</a></li>
			</ul>
		</div>
</div>
<div class="center_con clearfix">

		<ul class="subnav fl">
		<% String cl[] = {"fruit","dryfruit","liquor","egg","tea","sea"}; %>
		<% ArrayList<Type> types = (ArrayList<Type>)request.getAttribute("types");
			for(int i=0;i<types.size();i++){
				Type type = types.get(i);
		%>
				<li><a href="#model0<%=type.getId() %>" class="<%=cl[i] %>"><%=type.getKind() %></a></li>
			<% 	
			}
			%>
		</ul>
		<div class="slide fl">
		
			<ul class="slide_pics">
				<li><img src="<%=path %>/images/1.jpg" alt="幻灯片"></li>
				<li><img src="<%=path %>/images/2.jpg" alt="幻灯片"></li>
				<li><img src="<%=path %>/images/3.jpg" alt="幻灯片"></li>
				<li><img src="<%=path %>/images/4.jpg" alt="幻灯片"></li>
				<li><img src="<%=path %>/images/5.jpg" alt="幻灯片"></li>
				<li><img src="<%=path %>/images/6.jpg" alt="幻灯片"></li>
			</ul>
			<div class="prev"></div>
			<div class="next"></div>
			<ul class="points"></ul>

		</div>
		<div class="adv fl">
			<a href="#"><img src="<%=path %>/images/adv01.jpg"></a>
			<a href="#"><img src="<%=path %>/images/adv02.jpg"></a>
		</div>
</div>



<div class="list_model">           <!-- 应季水果 -->
		<div class="list_title clearfix">
			<h3 class="fl" id="model0<%=types.get(0).getId() %>"><%=types.get(0).getKind() %></h3>
			<div class="subtitle fl">
				<span>|</span>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=葡萄">葡萄</a>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=苹果">苹果</a>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=草莓">草莓</a>
			</div>

			<a href="<%=path%>/SpecialtyController?action=findAll&id=1" class="goods_more fr" id="fruit_more">查看更多 ></a>
		</div>

		<div class="goods_con clearfix">
			<div class="goods_banner fl"><img src="<%=path %>/images/banner0<%=types.get(0).getId() %>.jpg"></div>
			<ul class="goods_list fl">
				<li>
					<h4><a href="javascript:void(0)">大泽山葡萄</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=2"><img src="upload/goods/大泽山葡萄.jpg"></a>
					<div class="prize">¥ 12.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">胶南蓝莓</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=3"><img src="upload/goods/胶南蓝莓.jpg"></a>
					<div class="prize">¥ 30.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">烟台苹果</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=4"><img src="upload/goods/烟台苹果.jpg"></a>
					<div class="prize">¥ 5.5</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">莱阳梨</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=5"><img src="upload/goods/莱阳梨.jpg"></a>
					<div class="prize">¥ 3.8</div>
				</li>
			</ul>
		</div>
	</div>



<div class="list_model">               <!-- 精品干果 -->
		<div class="list_title clearfix">
			<h3 class="fl" id="model0<%=types.get(1).getId() %>"><%=types.get(1).getKind() %></h3>
			<div class="subtitle fl">
				<span>|</span>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=瓜子">瓜子</a>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=坚果">坚果</a>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=核桃">核桃</a>
			</div>
			<a href="<%=path%>/SpecialtyController?action=findAll&id=2" class="goods_more fr" id="fruit_more">查看更多 ></a>
		</div>

		<div class="goods_con clearfix">
			<div class="goods_banner fl"><img src="<%=path %>/images/banner0<%=types.get(1).getId() %>.jpg"></div>
			<ul class="goods_list fl">
				<li>
					<h4><a href="javascript:void(0)">雨山核桃</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=15"><img src="upload/goods/雨山核桃.jpg"></a>
					<div class="prize">¥ 23.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">坝上榛子</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=20"><img src="upload/goods/坝上榛子.jpg"></a>
					<div class="prize">¥ 18.7</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">沁州南瓜子</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=22"><img src="upload/goods/沁州南瓜子.jpg"></a>
					<div class="prize">¥ 36.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">迁西京东板栗</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=30"><img src="upload/goods/迁西京东板栗.jpg"></a>
					<div class="prize">¥ 11.2</div>
				</li>
			</ul>
		</div>
	</div>
	
	
	
<div class="list_model">               <!-- 热销酒水 -->
		<div class="list_title clearfix">
			<h3 class="fl" id="model0<%=types.get(2).getId() %>"><%=types.get(2).getKind() %></h3>
			<div class="subtitle fl">
				<span>|</span>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=红酒">红酒</a>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=白酒">白酒</a>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=茅台">茅台</a>
			</div>
			<a href="<%=path%>/SpecialtyController?action=findAll&id=3" class="goods_more fr" id="fruit_more">查看更多 ></a>
		</div>

		<div class="goods_con clearfix">
			<div class="goods_banner fl"><img src="<%=path %>/images/banner0<%=types.get(2).getId() %>.jpg"></div>
			<ul class="goods_list fl">
				<li>
					<h4><a href="javascript:void(0)">强恕堂酒</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=9"><img src="upload/goods/强恕堂酒.jpg"></a>
					<div class="prize">¥ 300.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">邯郸丛台酒</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=18"><img src="upload/goods/邯郸丛台酒.jpg"></a>
					<div class="prize">¥ 268.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">衡水老白干</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=19"><img src="upload/goods/衡水老白干.jpg"></a>
					<div class="prize">¥ 129.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">贵州茅台酒</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=24"><img src="upload/goods/贵州茅台酒.jpg"></a>
					<div class="prize">¥ 3088.0</div>
				</li>
			</ul>
		</div>
	</div>
	
	
	
	
<div class="list_model">               <!-- 农家特产 -->
		<div class="list_title clearfix">
			<h3 class="fl" id="model0<%=types.get(3).getId() %>"><%=types.get(3).getKind() %></h3>
			<div class="subtitle fl">
				<span>|</span>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=蛋">蛋</a>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=木耳">木耳</a>
				
			</div>
			<a href="<%=path%>/SpecialtyController?action=findAll&id=4" class="goods_more fr" id="fruit_more">查看更多 ></a>
		</div>

		<div class="goods_con clearfix">
			<div class="goods_banner fl"><img src="<%=path %>/images/banner0<%=types.get(3).getId() %>.jpg"></div>
			<ul class="goods_list fl">
				<li>
					<h4><a href="javascript:void(0)">微山湖麻鸭蛋</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=16"><img src="upload/goods/雨山核桃.jpg"></a>
					<div class="prize">¥ 16.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">泗交黑木耳</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=21"><img src="upload/goods/泗交黑木耳.jpg"></a>
					<div class="prize">¥ 18.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">仙人红薯</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=23"><img src="upload/goods/仙人红薯.jpg"></a>
					<div class="prize">¥ 2.6</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">永川皮蛋</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=27"><img src="upload/goods/永川皮蛋.jpg"></a>
					<div class="prize">¥ 24.0</div>
				</li>
			</ul>
		</div>
	</div>
	
	
	
	
	<div class="list_model">               <!-- 精品茶叶 -->
		<div class="list_title clearfix">
			<h3 class="fl" id="model0<%=types.get(4).getId() %>"><%=types.get(4).getKind() %></h3>
			<div class="subtitle fl">
				<span>|</span>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=红茶">红茶</a>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=龙井">龙井</a>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=普洱">普洱</a>
			</div>
			<a href="<%=path%>/SpecialtyController?action=findAll&id=5" class="goods_more fr" id="fruit_more">查看更多 ></a>
		</div>

		<div class="goods_con clearfix">
			<div class="goods_banner fl"><img src="<%=path %>/images/banner0<%=types.get(4).getId() %>.jpg"></div>
			<ul class="goods_list fl">
				<li>
					<h4><a href="javascript:void(0)">崂山绿茶</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=1"><img src="upload/goods/崂山绿茶.jpg"></a>
					<div class="prize">¥ 190.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">马牛山茶</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=28"><img src="upload/goods/马牛山茶.jpg"></a>
					<div class="prize">¥ 128.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">惠东仙人茶</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=29"><img src="upload/goods/惠东仙人茶.jpg"></a>
					<div class="prize">¥ 180.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">都匀毛尖茶</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=25"><img src="upload/goods/都匀毛尖茶.jpg"></a>
					<div class="prize">¥ 799.0</div>
				</li>
			</ul>
		</div>
	</div>
	
	
	
	
	<div class="list_model">               <!-- 鲜活水产 -->
		<div class="list_title clearfix">
			<h3 class="fl" id="model0<%=types.get(5).getId() %>"><%=types.get(5).getKind() %></h3>
			<div class="subtitle fl">
				<span>|</span>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=鱼">鱼</a>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=虾">虾</a>
				<a href="<%=path %>/SpecialtyController?action=serach&serach_produit=蟹">蟹</a>
			</div>
			<a href="<%=path%>/SpecialtyController?action=findAll&id=6" class="goods_more fr" id="fruit_more">查看更多 ></a>
		</div>

		<div class="goods_con clearfix">
			<div class="goods_banner fl"><img src="<%=path %>/images/banner0<%=types.get(5).getId() %>.jpg"></div>
			<ul class="goods_list fl">
				<li>
					<h4><a href="javascript:void(0)">日照金乌贼</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=6"><img src="upload/goods/日照金乌贼.jpg"></a>
					<div class="prize">¥ 36.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">日照东方对虾</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=8"><img src="upload/goods/日照东方对虾.jpg"></a>
					<div class="prize">¥ 40.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">黄河口大闸蟹</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=11"><img src="upload/goods/黄河口大闸蟹.jpg"></a>
					<div class="prize">¥ 138.0</div>
				</li>
				<li>
					<h4><a href="javascript:void(0)">白云湖甲鱼</a></h4>
					<a href="<%=path %>/SpecialtyController?action=detailed&id=14"><img src="upload/goods/白云湖甲鱼.jpg"></a>
					<div class="prize">¥ 83.0</div>
				</li>
			</ul>
		</div>
	</div>		

<jsp:include page="/inc/footer.jsp"></jsp:include>

	